import request from '../utils/request'
enum Api {
  GetVideoList = '/video/timeline/all',
  GetMvList = '/mv/all',
  GetPlayVideoList = '/video/url',
  GetMvVideoList = '/mv/url',
  GetMvtext = '/comment/mv',
  GetVideoText = '/video/detail',
  VideoList = '/mv/all',
}

export const VideoListApi = (limit: number, area: string) => {
  return request({
    url: Api.VideoList,
    method: 'GET',
    params: {
      limit,
      area,
    },
  })
}
export const GetVideoList = () => {
  return request({
    url: Api.GetVideoList,
    method: 'GET',
  })
}

export const GetMvList = (limit: 100) => {
  return request({
    url: Api.GetMvList,
    method: 'GET',
    params: { limit },
  })
}

export const GetPlayVideoList = (id) => {
  return request({
    url: Api.GetPlayVideoList,
    method: 'GET',
    params: { id },
  })
}

export const GetMvVideoList = (id) => {
  return request({
    url: Api.GetMvVideoList,
    method: 'GET',
    params: { id },
  })
}

export const GetMvtext = (id) => {
  return request({
    url: Api.GetMvtext,
    method: 'GET',
    params: { id },
  })
}
export const GetVideoText = (id) => {
  return request({
    url: Api.GetVideoText,
    method: 'GET',
    params: { id },
  })
}
